package com.bdqn.response;

public enum ResultCode {

    SUCCESS(true,10000,"操作成功"),
    FAIL(false,10001,"操作失败"),
    SERVER_ERROR(false,10101,"抱歉，系统繁忙，请稍后重试！"),
    MOBILE_OR_PASSWORD_OR_TYPE_ERROR(false,11111,"用户名或密码错误,或被禁用"),
    LOGIN_TIME_OUT(false,11112,"已超时,请重新登录"),
    UN_AUTH_PERMISSION(false,11113,"权限不足"),
    UN_AUTH_NO_LOGIN(false,11114,"您还未登录"),

    TOKEN_EXPIRES(false,101,"token is not expires"),

    PERMISSION_IN_ROLE_HAS_DATA(false,20000,"权限中存在子级，无法删除"),



    EXAM_DAY_IS_ALWAYS(false,90001,"参考班级的日测已存在"),
    EXAM_WEEK_IS_ALWAYS(false,90002,"参考班级的周测已存在"),
    EXAM_MONTH_IS_ALWAYS(false,90003,"参考班级的月测已存在"),
    QUESTION_SIZE_OUTPUT(false,90004,"超出数据库最大题量"),
    EXAM_NO_START(false,90005,"考试未开始"),
    EXAM_IS_COMMIT(false,90006,"试卷已提交,暂时无法查看"),
    SCORE_MORE_BIG(false,90007,"分数给定过大"),
    ANNOTATE_NO(false,90008,""), //当前试卷还有问答题没有批阅完成
    ANNOTATE_OK(true,90009,"当前试卷已完成批阅"), //当前试卷已完成问答题批阅
    EXAM_IS_MAKEUP_EXAMINATION_PERSON(false,90010,"当前试卷还存在需要补考的人员"),
    CLASSES_NO_EXAMS(false,90011,"班级目前没有考试");
    //操作是否成功
    boolean success;
    //操作代码
    int code;
    //提示信息
    String message;

    ResultCode(boolean success,int code, String message){
        this.success = success;
        this.code = code;
        this.message = message;
    }

    public boolean success() {
        return success;
    }

    public int code() {
        return code;
    }

    public String message() {
        return message;
    }

}
